//
//  FKSearchKeyword.m
//  HappyTest
//
//  Created by Macbook Pro on 2019/1/21.
//  Copyright © 2019 Macbook Pro. All rights reserved.
//

#import "FKSearchKeyword.h"

@implementation FKSearchKeyword

//- (void)setTitle:(NSString *)title
//{
//    _title = title;
//
//    [self setKeyword:title];
//}
//
//- (void)setSearch_name:(NSString *)search_name
//{
//    _search_name = search_name;
//
//    [self setKeyword:search_name];
//}

//- (void)setKeyword:(NSString *)keyword
//{
//    _keyword = keyword;
//
//    CGFloat keywordW = [keyword boundingRectWithSize:CGSizeMake(fkScreenW - 24, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName : fk_adjustFont(12)} context:nil].size.width + fk_adjustW(24);
//    _keyworkSize = CGSizeMake(keywordW, fk_adjustW(26));
//}

- (void)setSearch_content:(NSString *)search_content
{
    _search_content = search_content;
    
    CGFloat keywordW = [search_content boundingRectWithSize:CGSizeMake(fkScreenW - 24, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName : fk_adjustFont(12)} context:nil].size.width + fk_adjustW(24);
    _keyworkSize = CGSizeMake(keywordW, fk_adjustW(26));
}

@end
